package com.bbx.api.sdk.net.passeger.conn;

/**
 * 进行中的订单
 *
 */
import java.io.InputStream;

import android.content.Context;

import com.bbx.api.sdk.model.passanger.Return.Sharelink;
import com.bbx.api.sdk.model.passanger.Return.Version;
import com.bbx.api.sdk.model.passanger.Return.MyOrderList.MyOrders;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.base.GeneralParser;

/**
 * 版本
 */
public class VersionNet extends BaseNetwork {

	public VersionNet(Context context, String datas) {
		super(context, false);
		// TODO Auto-generated constructor stub
		url = VERSION_Url;
		InputStream inputStream = getContentWithPOST((datas));
		if (inputStream != null) {
			parser = new GeneralParser(context, inputStream);
		}
	}

	@Override
	public Object getData() {
		if(parser==null){
			return null;
		}
		return parser.getData(Version.class);
	}

}
